<template>
  <div>
    <el-dialog :visible="show_details" class="newdis-details" width="910px" @close="dialogClose" :modal="false">
      <div class="content-header">
        <div class="header-title">疑似违章建筑监察结果报告</div>
      </div>
      <div class="content-body">
        <div class="reportCon">
          <form class="">
            <div class="report">
              <h1>疑似违章建筑监察结果报告</h1>
              <div class="report-top">
                <dl>
                  <dt>案件号</dt>
                  <dd>{{ info.caseNumber }}</dd>
                  <dt>来源</dt>
                  <dd>{{ info.source }}</dd>
                  <dt>坐标</dt>
                  <dd>{{ info.coordinate }}</dd>
                </dl>
                <dl>
                  <dt>发现日期</dt>
                  <dd>{{ info.discoveryDate }}</dd>
                  <dt>社区</dt>
                  <dd>{{ info.community }}</dd>
                  <dt>备注描述</dt>
                  <dd>{{ info.remarks }}</dd>
                </dl>
                <h3>详细地址</h3>
                <p>{{ info.address }}</p>
              </div>
              <div class="report-center">
                <h3>地图位置</h3>
                <div class="map"></div>
              </div>
              <div class="report-center">
                <h3>往期追溯</h3>
                <div class="map"></div>
              </div>
              <div class="report-bottom">
                <h3>备注：</h3>
                <p>{{ info.remarks }}</p>
                <label>提交：</label>
                <label>日期：</label>
                <label>审核：</label>
              </div>
            </div>
            <h2>申请无人机支援需填写</h2>
            <div class="form-item">
              <div class="item-label">
                <label for="image_type">拍摄类型</label>
              </div>
              <div class="item-input">
                <el-select class="" v-model="protype" multiple placeholder="请选择拍摄类型">
                  <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
                </el-select>
              </div>
            </div>
            <div class="form-item">
              <div class="item-label">
                <label for="image_type">其他拍摄类型</label>
              </div>
              <div class="item-input">
                <el-input class="input" v-model="inputype" placeholder="其他拍摄类型"></el-input>
                <!-- <el-autocomplete class="" v-model="protype" :fetch-suggestions="querySearch" placeholder="请选择拍摄类型" clearable></el-autocomplete> -->
              </div>
            </div>
            <div class="form-footer">
              <div>
                <h2>后台操作记录：</h2>
              </div>
              <div>
                <table>
                  <tbody>
                    <tr>
                      <th>操作时间</th>
                      <th>操作行为</th>
                      <th>操作记录</th>
                    </tr>
                    <tr v-for="(item, index) in res" :key="index">
                      <td>{{ item.time }}</td>
                      <td>{{ item.beha }}</td>
                      <td>{{ item.rec }}</td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
          </form>
        </div>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data () {
    return {
      protype: '',
      inputype: '',
      options: [{
        value: '选项1',
        label: '全景'
      }, {
        value: '选项2',
        label: '特写'
      }, {
        value: '选项3',
        label: '视频'
      }],
      res: [
        {
          time: '2012',
          beha: '报告',
          rec: '操作'
        },
        {
          time: '2013',
          beha: '报告',
          rec: '操作'
        }
      ],
      info: {
        caseNumber: 'LG-xlc-20180313001',
        source: '无人机全景系统',
        coordinate: '114.211198,22.782604',
        discoveryDate: '2018-03-13',
        community: '五联社区',
        remarks: '疑似拆除房屋',
        address: '龙岗街道五联社区下撩旁'
      }
    }
  },
  props: {
    show_details: {
      type: Boolean,
      default: () => false
    }
  },
  methods: {
    dialogClose() {
      this.$emit('update:show_details', false)
      this.$emit('dialogClose')
    }
  }
}
</script>
